import React, { Component } from 'react';
import { Route,Switch,HashRouter} from "react-router-dom";
import Login from './views/login';
import Modify from './views/ModifyInformation';
import Tabs from './views/Tabs';
import PersonInfo from './views/PersonInfo'

class Routes extends Component {
    render() {
        return (      
            <HashRouter onUpdate={() => window.scrollTo(0, 0)}>
               <Switch>
                  <Route exact path="/" component={Login}></Route>
                  <Route exact path="/Modify" component={Modify}></Route>
                  <Route exact path="/Tabs" component={Tabs}></Route>
                  <Route exact path="/Person" component={PersonInfo}></Route>
                </Switch>
            </HashRouter>
        )
    }
}
export default Routes;